<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Login</title>
</h:head>

<h:body>
		<f:view >
            <h:form >
                <h:panelGrid columns="2">
                    <h:outputLabel value="User Name" for="j_username"/>
                    <h:inputText id="j_username"
                                   value="#{loginBean.username}"
                                   required="true"/>
                    <h:outputLabel value="Password" for="j_password"/>
                    <h:inputSecret id="j_password"
                                     value="#{loginBean.password}"
                                     required="true"/>
                </h:panelGrid>
                <h:commandButton action="#{loginBean.doLogin}" value="Login"/>
                <h:messages style="color: red;"/>
            </h:form>
        </f:view>
</h:body>
</html>